package com.jk.admin.dao;

import com.jk.admin.entity.TypeEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TypeDao {


    @Select("select * from t_type")
    List<TypeEntity> getListType();

    @Insert("insert into t_type values(0,#{typename})")
    void addType(TypeEntity typeEntity);

    @Delete("delete from t_type where id = ${id} ")
    void delType(Integer id);
}
